<%@page import="systems.AdsSystem"%>
<%@page import="systems.RecentlyUpdate"%>
<%@page import="systems.RecentlyDomain"%>
<%@page import="java.util.List"%>
<%
List<String> domains = RecentlyDomain.getDomains();
List<String> uDomains = RecentlyUpdate.getDomains();
String hasAdv = (String) request.getParameter("hasAdv");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

			<div class="span4 slidebar">
				<div class="block">
					<form action="/goto" class="input-append" id="search">
						<input type="text" role="textbox" class="xlarge ui-autocomplete-input" id="artist_search" name="q" placeholder="ex: google.com" value="">
						<input class="btn search-bt" type="submit" value="" name="submit">
					</form>
				</div>
				<% if (hasAdv == null) { %>
				<div class="block adv">
					<%=AdsSystem.getAds300x250() %>
				</div>
				<% } %>
				
				<div class="block">
					<div class="title-block">
						<h3>Recently Domain</h3>
						<div class="divider-arrow"></div>
					</div>
					<ul class="list">
						<%
						for (int i = 0; i < domains.size(); i++) {
							if (i >= 15) break;
						%>
						<li><a href="/www/<%=domains.get(i) %>"><%=domains.get(i) %></a></li>
						<% } %>
					</ul>
				</div>
				
				<div class="block">
					<div class="title-block">
						<h3>Recently Update</h3>
						<div class="divider-arrow"></div>
					</div>
					<ul class="list">
						<%
						for (int i = 0; i < uDomains.size(); i++) {
							if (i >= 15) break;
						%>
						<li><a href="/www/<%=uDomains.get(i) %>"><%=uDomains.get(i) %></a></li>
						<% } %>
					</ul>
				</div>
			</div>